package edu.zju.gis.dldsj.service;

import edu.zju.gis.dldsj.base.BaseService;
import edu.zju.gis.dldsj.entity.RoleModel;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author yanlo yanlong_lee@qq.com
 * @version 1.0 2018/08/09
 */
public interface RoleModelService extends BaseService<RoleModel, String> {
    void insert(@NotNull List<RoleModel> models);

    void update(@NotNull List<RoleModel> models);

    void deleteByRoleId(String roleId);

    void delete(String roleId, String modelId);

    boolean exist(String roleId, String modelId);

    List<RoleModel> selectByRoleId(String roleId);

    void updateStatus(String artifactId, String status);
}
